cmake_minimum_required(VERSION 3.7.2)
project(ashmem)
set(CMAKE_C_STANDARD 90)

add_custom_target(ashmem_driver_compile COMMAND make all WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/ashmem/driver)
add_custom_target(ashmem_driver_insmod COMMAND make insmod WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/ashmem/driver)
add_custom_target(ashmem_driver_install COMMAND make install WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/ashmem/driver)
add_custom_target(ashmem_driver_clean COMMAND make clean WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/ashmem/driver)

add_subdirectory(user)